package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.Weibo;
import cn.tedu._04mybatis.pojo.vo.*;
import org.apache.ibatis.annotations.*;

@Mapper
public interface WeiboMapper {
    int insertWeibo(Weibo weibo);

    int deleteWeiboById(Long wid);

    int updateWeibo(Weibo weibo);

    Weibo selectWeiboById(Long wid);


    java.util.List<Weibo> selectWeiboByUserId(Long uid);

    WeiboVO1 selectWeiboVO1ById(Long wid);


    java.util.List<WeiboVO2> selectWeiboVO2ByUserId(Long uid);

    int dynamicUpdate(Weibo weibo);

    int dynamicDelete(Long[] ids);

    int countWeibo();

    ResultMapVO1 selectResultMapVO1(Long wid);

    ResultMapVO2 selectResultMapVO2(Long uid); //指定用户的所有微博

    ResultMapVO3 selectResultMapVO3(Long wbId); //指定微博的所有评论

    ResultMapVO4 selectResultMapVO4(Long wbId);
}
